<% if params[:email] %>

<h1>Register</h1>
<%= form_tag(url = {:action => :register_try, :email => params[:email]})%>
<p><label>First name <br /><%= text_field "user", "firstname" %></label></p>
<p><label>Last name <br /><%= text_field "user", "lastname" %></label></p>
<p><label>Username <br /><%= text_field "user", "username" %></label></p>
<p><label>Password <br /><%= password_field "user", "password" %></label></p>
<%= submit_tag "Register" %>
</form>

<% else %>

<h1>Register</h1>
<%= form_tag(url = {:action => :verify_email})%>
<p><label>Email <br /><%= text_field "user", "email" %></label></p>
<%= submit_tag "Verify your email address" %>
</form>

<% end %>
